gtk-launch: add hack to close up dbus-daemon race
authorRay Strode <rstrode@redhat.com>
Fri, 4 Mar 2016 15:02:34 +0000 (10:02 -0500)
committerRay Strode <rstrode@redhat.com>
Fri, 4 Mar 2016 17:42:37 +0000 (12:42 -0500)
commit50598ee08f0c3a6a448c266a3451392c48226635
tree7f4ca4916b565e34d2192024d07d734ec05dd6cb
parent88d51a8604e55b98b5671da739ab3a31f4befb6b
gtk-launch: add hack to close up dbus-daemon race

If gtk-launch exits before the program it starts fully activates,
then the dbus-daemon may avoid doing the activating method call.

This commit works around the problem by pinging the activated
application, and waiting for a reply.

This is similar to the gvfs-open bug here:

    https://bugzilla.gnome.org/show_bug.cgi?id=746534

https://bugzilla.gnome.org/show_bug.cgi?id=763103
gtk/gtk-launch.c